package 面向对象中级.继承.作业;

public class SalariedEmployee extends Employee{

    private int monthlySalary;//月工资

    @Override
    public int getSalary(int month) {//A?B:C
        return monthlySalary+month==super.getMonth()?100:0;
    }
}
